package com.bjpowernode.drp.item.forms;

import org.apache.struts.action.ActionForm;

import com.bjpowernode.drp.model.ItemCategory;
import com.bjpowernode.drp.model.ItemUnit;

public class ItemForm extends ActionForm {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4062137161565066391L;

	private int pageNo;
	
	private String itemId;

	private String itemName;

	private String spec;

	private String pattern;

	private ItemCategory itemCategory;

	private ItemUnit itemUnit;

	private String[] fileNames;
	
	private String itemIdOrName;
	
	private String[] selectFlag;

	public String getItemIdOrName() {
		return itemIdOrName;
	}

	public void setItemIdOrName(String itemIdOrName) {
		this.itemIdOrName = itemIdOrName;
	}

	public String[] getSelectFlag() {
		return selectFlag;
	}

	public void setSelectFlag(String[] selectFlag) {
		this.selectFlag = selectFlag;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}

	public ItemCategory getItemCategory() {
		return itemCategory;
	}

	public void setItemCategory(ItemCategory itemCategory) {
		this.itemCategory = itemCategory;
	}

	public ItemUnit getItemUnit() {
		return itemUnit;
	}

	public void setItemUnit(ItemUnit itemUnit) {
		this.itemUnit = itemUnit;
	}

	public String[] getFileNames() {
		return fileNames;
	}

	public void setFileNames(String[] fileNames) {
		this.fileNames = fileNames;
	}

	public int getPageNo() {
		return pageNo==0?1:pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

}
